package com.chy.设计模式;

import com.chy.aa;

import static com.chy.设计模式.SomeThing.INSTANCE2;

public enum SomeThing {
    INSTANCE2;
    private final aa instance = new aa();
//    SomeThing() {
//        instance = new Resource();
//    }
    public aa getInstance() {
        return instance;
    }
}

class Resource {

}
//class Test{
//    SomeThing.INSTANCE2.getInstance();
//}
